﻿using System.Collections.Generic;
using Volo.Abp.Application.Dtos;

namespace Leo.Awesome.DictionaryManagement.Dtos
{
    public class AttachmentPagedResultDto : ListResultDto<AttachmentGetListOutputDto>, IPagedResult<AttachmentGetListOutputDto>
    {
        public long TotalCount { get; set; }

        /// <summary>
        /// Creates a new <see cref="PagedResultDto{T}"/> object.
        /// </summary>
        public AttachmentPagedResultDto()
        {

        }

        /// <summary>
        /// Creates a new <see cref="PagedResultDto{T}"/> object.
        /// </summary>
        /// <param name="totalCount">Total count of Items</param>
        /// <param name="items">List of items in current page</param>
        public AttachmentPagedResultDto(long totalCount, IReadOnlyList<AttachmentGetListOutputDto> items)
            : base(items)
        {
            TotalCount = totalCount;
        }
    }
}
